<?php
/*
 * Form chi tiet
 */
?>
<style>
    .row-chitiet {
        background: #F4F7FA;
        float: left;
        padding: 5px 0px;
        margin-bottom:10px;
    }

    .title-chitiet {
        background: none repeat scroll 0 0 #DBEAF2;
        font-weight: bold;
        height: 30px;
        letter-spacing: 1px;
        line-height: 30px;
        padding-left: 8px;
        text-transform: uppercase;
    }
    .body-chitiet {
        width: 99%;
        padding: 5px!important;
    }
    label{font-weight: bold;}
    p{font-weight: normal!important;}
    .vitri{color:#060; font-weight: bold!important; }
    .row-title {
        border-bottom: 1px dashed #CCCCCC;
        float: left;
        margin-top: 5px;
        margin-bottom:7px;
    }
    .div-row p {
        width: 620px;
    }
    .mb10{margin-bottom: 10px;}
    p.line {
        border-bottom: 1px dashed #ccc;
        padding-bottom: 7px;
    }
</style>
<div class="row">
    <div class="span3">        
        <?php $this->widget('quanlynghenghiepungvien'); ?>
        <?php $this->widget('mucdohoanthanhhoso'); ?>
    </div>
    <div class="span9_5">
        <div class="jb_left2">
            <p class="job_title_common">
                <strong><span class='span9'><i class='icon-folder-open icon-white'></i> Chi tiết hồ sơ </span></strong>
            </p>
            <div class="cont_jb_left_span9_5">
                <!-- form chi tiet -->
                <!-- thong tin lien he -->
                <div class='profile-contact row-chitiet'>
                    <div class='pull-right'>
                        <a href='<?php echo Yii::app()->getBaseUrl(true); ?>/ungvien/profile.html'><i class='icon-edit'></i> Sửa</a>
                    </div>
                    <div class='avatar-profile'>
                        <img class='img-polaroid' src='<?php echo Yii::app()->getBaseUrl(true); ?>/uploads/avatar/<?php echo $user->avatar; ?>' />
                    </div>
                    <div class='profile-left'>
                        <ul>
                            <li>
                                <label>Họ và tên:</label><span><?php echo $user->tengoi; ?></span>
                            </li>
                            <li>
                                <label>Ngành sinh:</label><span><?php echo $ngaysinh; ?></span>
                            </li>
                            <li>
                                <label>Tình  trạng hôn nhân:</label><span><?php echo $user->tinhtranghonnhan == 1 ? 'Độc thân' : 'Đã kết hôn'; ?></span>
                            </li>
                            <li>
                                <label>Giới tính:</label><span><?php echo $user->gioitinh == 1 ? 'Nam' : 'Nữ'; ?></span>
                            </li>
                        </ul>
                    </div>
                    <div class='profile-right'>
                        <ul>
                            <li>
                                <label>ĐTDĐ:</label><span><?php echo $user->dtdd; ?></span>
                            </li>
                            <li>
                                <label>Email:</label><span><?php echo $user->email; ?></span>
                            </li>
                            <li>
                                <label>Địa chỉ:</label><span><?php echo $user->diachi; ?></span>
                            </li>
                        </ul>
                    </div>
                </div> 
                <!-- thong tin nghe nghiep -->
                <div class='row-chitiet body-chitiet'>
                    <div class='pull-right'>
                        <a href='<?php echo Yii::app()->getBaseUrl(true); ?>/ungvien/tintimviec.html?id=<?php echo $hoso->id; ?>'><i class='icon-edit'></i> Sửa</a>
                    </div>
                    <div class='title-chitiet'>Thông tin nghề nghiệp</div>
                    <div class='chitiet'>
                        <div class='div-row row-title'>
                            <label>Vị trí mong muốn:</label>
                            <p class='vitri'><?php echo $hoso->vitriungtuyen; ?></p>
                        </div>
                        <div class='div-row'>
                            <label>Mức lương:</label>
                            <p>
                                <?php
                                if ($hoso_luong->tu) {
                                    echo number_format($hoso_luong->tu) . '  -  ' . number_format($hoso_luong->den) . '   ' . $hoso->luong->name;
                                } else {
                                    echo $hoso->luong->name;
                                }
                                ?>
                            </p>
                        </div>
                        <div class='div-row'>
                            <label>Bằng cấp:</label>
                            <p><?php echo $hoso->bangcap->name; ?></p>
                        </div>
                        <div class='div-row'>
                            <label>Mục tiêu nghề nghiệp:</label>
                            <p><?php echo $hoso->muctieunghenghiep; ?></p>
                        </div>
                        <!-- Quá trình học vấn -->
                        <div class='title-chitiet clearfix mb10'>Quá trình học vấn</div>
                        <?php if (count($quatrinhhoc) > 0 && is_array($quatrinhhoc)) { ?>
                            <?php foreach ($quatrinhhoc as $key => $item) { ?>
                                <div class="row-fluid row-quatrinh item-<?php echo $hid . '-' . $item->id; ?>">
                                    <div class='span3 ml10'>
                                        Năm tốt nghiệp<br />
                                        <b><?php echo $item->totnghiep_thang . '/' . $item->totnghiep_nam; ?></b>

                                    </div>
                                    <div class='span4'>
                                        <span class='truong'>
                                            <?php echo ucwords($item->truong_khoahoc); ?></span> - <span class='tp-bc'>
                                            <?php echo $item->thanhpho . ', ' . $item->quocgia . ', ' . $item->bangcap->name; ?>
                                        </span><br />
                                        <span class='mota'>
                                            <?php echo $item->tomtat; ?>
                                        </span>
                                    </div>
                                </div>
                            <?php } ?>
                        <?php } ?>
                        <!-- Kinh nghiệm làm việc -->
                        <div class='title-chitiet clearfix mb10'>Kinh nghiệm làm việc</div>
                        <?php if (count($knlamviec) > 0 && is_array($knlamviec)) { ?>
                            <?php foreach ($knlamviec as $key => $item) { ?>
                                <div class="row-fluid row-quatrinh itemkn-<?php echo $hid . '-' . $item->id; ?>">
                                    <div class='span3 ml10'>
                                        <b><?php echo $item->tu . ' - ' . $item->den; ?></b>
                                    </div>
                                    <div class='span4'>
                                        <span class='truong'>
                                            <?php echo ucwords($item->congty) . ', ' . $item->tinh_thanhpho; ?>
                                        </span>
                                        <br />
                                        <span class='tp-bc'>
                                            <?php echo $item->chucvu; ?>
                                        </span>
                                        <br />
                                        <span class='mota'>
                                            <?php echo $item->motacongviec; ?>
                                        </span>
                                    </div>
                                </div>
                            <?php } ?>
                        <?php } ?>
                        <!-- Kỹ năng -->
                        <div class='title-chitiet clearfix mb10'>Kỹ năng</div>
                        <?php if (count($kynang) > 0) { ?>
                            <div class='div-row'>
                                <?php foreach ($kynang as $item) { ?>
                                    <p class='line'><?php echo $item->kynang->name; ?></p>
                                <?php } ?>
                            </div>
                        <?php } ?>

                        <!-- nguoi tham khao -->
                        <div class='title-chitiet clearfix mb10'>Người tham khảo</div>
                        <?php if (count($nguoithamkhao) > 0 && is_array($nguoithamkhao)) { ?>
                            <?php foreach ($nguoithamkhao as $key => $item) { ?>
                                <div class="row-fluid row-quatrinh itemt-<?php echo $hid . '-' . $item->id; ?>">
                                    <div class='span3 ml10'>
                                        <b><?php echo $item->hoten; ?></b>

                                    </div>
                                    <div class='span4'>
                                        <span class='truong'>
                                            <?php echo ucwords($item->chucvu); ?> -
                                            <?php echo $item->congty; ?>
                                        </span><br />
                                        <span class='mota'>
                                            Điện thoại: <?php echo $item->dienthoai; ?><br />
                                            Email: <?php echo $item->email; ?><br />
                                            <?php echo $item->moiquanhe == 1 ? 'Công việc' : 'Cá nhân'; ?>
                                        </span>
                                    </div>
                                </div>
                            <?php } ?>
                        <?php } ?>
                        <!-- Thông tin bổ sung -->
                        <div class='title-chitiet clearfix mb10'>Thông tin bổ sung</div>
                        <div class='div-row'>
                            <p><?php echo $hoso->thongtinbosung; ?></p>
                        </div>
                    </div>
                    <div class='pull-right'>
                        <a href='<?php echo Yii::app()->getBaseUrl(true); ?>/ungvien/tintimviec.html?id=<?php echo $hoso->id; ?>'><i class='icon-edit'></i> Sửa</a>
                    </div>
                </div>
                <!-- end form chi tiet -->
                <div class='clearfix' ></div>
                <div class='row-fluid'>
                    <div class='span12 offset3'>
                            <a class='btn btn-large btn-success' href='#'><i class='icon-search icon-white'></i> XEM CÔNG VIỆC PHÙ HỢP VỚI BẠN</a>
                    </div>
                </div>
            </div>
        </div>
        <div class='clearfix' ></div>
    </div>
</div>